﻿using System;
using System.Configuration;

namespace Infrastructure.Configuration
{
    public class WebConfigApplicationSettings : IApplicationSettings
    {
        public string NumberOfResultsPerPage
        {
            get 
            { 
                return ConfigurationManager.AppSettings["NumberOfResultsPerPage"]; 
            }
        }

        public string JanrainApiKey
        {
            get
            {
                return ConfigurationManager.AppSettings["JanrainApiKey"];
            }
        }

        public string PayPalBusinessEmail
        {
            get 
            { 
                return ConfigurationManager.AppSettings["PayPalBusinessEmail"]; 
            }
        }

        public string PayPalPaymentPostToUrl
        {
            get 
            { 
                return ConfigurationManager.AppSettings["PayPalPaymentPostToUrl"];
            }
        }

        public bool DropAndRecreateDatabase
        {
            get
            {
                return Convert.ToBoolean(ConfigurationManager.AppSettings["DropAndRecreateDatabase"]);
            }
        }

        public string LoggerName
        {
            get
            {
                return ConfigurationManager.AppSettings["LoggerName"];
            }
        }
    }

}
